<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ag.bean.TbMedicineConfirm"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

        <base href="<%=basePath%>">
		<title>My JSP 'plan_detail.jsp' starting page</title>
		<link href="/ag/lzm/css/base.css" rel="stylesheet" type="text/css" />
		<link href="/ag/lzm/css/tab.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
<!--
.planSpan {
	padding-left: 10px;
}

.planDiv {
	border: #999 solid 1px;
	margin-top: 15px;
	color: #666;
	padding-left: 20px;
	padding-top: 20px;
	padding-right: 20px;
	height: 50px;
	width: 80%;
	font-size: 16px;
	color: #666;
}
-->
</style>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<script type="text/javascript" src="/ag/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="/ag/lzw/js/medicine_confirm_add.js"></script>
  </head>
  
  <body>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="/ag/lzm/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="/ag/lzm/images/tab_05.gif">
        	<img src="lzm/images/311.gif" width="16" height="16" /> <span class="STYLE4">药品查控</span>
        </td>
        <td width="281" background="/ag/lzm/images/tab_05.gif">&nbsp;</td>
        <td width="14"><img src="/ag/lzm/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="/ag/lzm/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#dceffd"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#84b1d3">
        <%
        Object str = request.getAttribute("taskname");
        String taskname = (String)str;
        Object obj = request.getAttribute("tmc");
        TbMedicineConfirm tmc = (TbMedicineConfirm)obj;
        %>
          <tr>
		      <td height="38" bgcolor="#FFFFFF" class="planSpan">任务名称：
				 <span class="planSpan" id="tNname"><%=taskname %></span>
			  </td>
          </tr>
          <%
            if(tmc.getB()!= null){  //有要求查处总数的，才显示
          %>
           <tr>
              <td width="46%" height="38" bgcolor="#FFFFFF" class="planSpan">药品需要查处的总数：
				 <span class="planSpan" id="mSum" style="display:none;"><%=tmc.getB()%></span>
			  </td>	
          </tr>
          <%
		    }
          %>
          <tr>
              <td width="46%" height="38" bgcolor="#FFFFFF" class="planSpan">药品名称：
				 <span class="planSpan" id="mName"><%=tmc.getMcName() %></span>
			  </td>	
          </tr>
        <% 
		if ( tmc.getC() = null ) { //信息修改要输出的
		%>
          <tr>
              <td width="46%" height="38" bgcolor="#FFFFFF" class="planSpan">药品已查处数量：
				 <input type="text" id="cNum" style="width: 200px" disabled="true"/>
			  </td>	
          </tr>
          <tr>
            <td height="38" bgcolor="#FFFFFF" class="planSpan">药品已封存数目：
				<input type="text" id="mNum" style="width: 200px" disabled="true"/>
			</td>
		  </tr>
		  <tr>
		      <td height="38" bgcolor="#FFFFFF" class="planSpan">药品已销毁数目：
				  <input type="text" id="dNum" style="width: 200px" disabled="true"/>
			  </td>
          </tr>
		  <tr>
		      <td height="38" bgcolor="#FFFFFF" class="planSpan">药品流失数量：
				  <input type="text" id="wNum" style="width: 200px" disabled="true"/>
			  </td>
          </tr>
          <tr>
            <td height="38" bgcolor="#FFFFFF" class="planSpan">
				 <input type="button" name="addfeedback" id="redo" style="font-size: 20px;width: 90px; height: 40px;" value="修改">
				 <input type="button" name="addfeedback" id="mSubmit" style="font-size: 20px;width: 90px; height: 40px; display:none;" value="提交">
			</td>
          </tr> 
		<% 
		} else {  //查控药品信息还没填 
		%>
          <tr>
              <td width="46%" height="38" bgcolor="#FFFFFF" class="planSpan">药品已查处数量：
				 <input type="text" id="cNum" style="width: 200px" />
			  </td>	
          </tr>
          <tr>
            <td height="38" bgcolor="#FFFFFF" class="planSpan">药品已封存数目：
				<input type="text" id="mNum" style="width: 200px" />
			</td>
		  </tr>
		  <tr>
		      <td height="38" bgcolor="#FFFFFF" class="planSpan">药品已销毁数目：
				  <input type="text" id="dNum" style="width: 200px" />
			  </td>
          </tr>
		  <tr>
		      <td height="38" bgcolor="#FFFFFF" class="planSpan">药品流失数量：
				  <input type="text" id="wNum" style="width: 200px" />
			  </td>
          </tr>
          <tr>
            <td height="38" bgcolor="#FFFFFF" class="planSpan">
				 <input type="button" name="addfeedback" id="mSubmit" style="font-size: 20px;width: 90px; height: 40px;" value="提交">
			</td>
          </tr> 
		<% 
		}
		
        %>
          
          <tr>
            <td height="38" colspan="2" bgcolor="#FFFFFF" class="planSpan">&nbsp;</td>
          </tr>
        </table></td>
        <td width="9" background="/ag/lzm/images/tab_16.gif" >&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="/ag/lzm/images/tab_20.gif" width="15" height="29" /></td>
        <td background="/ag/lzm/images/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="25%" height="29" nowrap="nowrap">&nbsp;</td>
            </tr>
        </table></td>
        <td width="14"><img src="/ag/lzm/images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>
</html>
